package com.ojoin.trade.common.exception;

/**
 * 业务异常类
 * @author guoting
 * 
 */
public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2097430456337440772L;

	private String hint; //引发异常的原因的提示或说明

	private String errorCodeString = ""; //错误码

	public BusinessException() {
		super();
	}

	public BusinessException(String s) {
		super(s);
		setErrorCodeString(IPayResponseCodeConst.ERR_UNKNOWN);
	}

	public BusinessException(String s, String errorCode) {
		super(s);
		setErrorCodeString(errorCode);
	}

	public java.lang.String getHint() {
		return hint;
	}

	public void setHint(java.lang.String newHint) {
		hint = newHint;
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public String getErrorCodeString() {
		return errorCodeString;
	}

	public void setErrorCodeString(String errorCode) {
		this.errorCodeString = errorCode;
	}

}
